# Maintainer: Benedikt Bitterli <benedikt.bitterli@gmail.com>

_realname=tinyformat
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.3.0
pkgrel=1
pkgdesc="A minimal type safe printf() replacement (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64' 'clang32')
license=('spdx:BSL-1.0')
url="https://github.com/c42f/tinyformat"
source=(${_realname}-${pkgver}.tar.gz::"https://github.com/c42f/tinyformat/archive/v${pkgver}.tar.gz")
sha256sums=('ecba2fbbd3829002a63e141b77b9f1fc30e920962f68466b50c3244652d69391')

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  install -Dm644 tinyformat.h "${pkgdir}${MINGW_PREFIX}/include/tinyformat.h"
}
